package com.interfaces;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableAspectJAutoProxy
@EnableScheduling
@MapperScan({"com.interfaces.module.**.mapper",
        "com.interfaces.module.test",
        "com.interfaces.module.**.mapping",
        "com.interfaces.aspect.*.dao"})
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, SecurityAutoConfiguration.class})
public class InterfaceApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(InterfaceApiApplication.class, args);
        System.out.println("InterfaceApiApplication启动成功");
    }

}
